//  家庭养老床位建设档案模块

// 分页获取
// 养老设施服务
const serviceFacModel = (request) => {
	return {
		// 全字段查询
		view_dpFamilyConstructionArchives_search(query = {}) {
			return request(`/bussiness/dpFamilyConstructionArchives/search`, {
				method: 'post',
				data: query,
			})
		},
		// 采集
		dpFamilyConstructionArchives_gather(query = {}) {
			return request(`/bussiness/dpFamilyConstructionArchives/gather`, {
				method: 'post',
				data: query,
			})
		},
		// 编辑
		dpFamilyConstructionArchives_edit(query = {}) {
			return request(`/bussiness/dpFamilyConstructionArchives/edit`, {
				method: 'post',
				data: query,
			})
		},
		// 添加
		dpFamilyConstructionArchives_add(query = {}) {
			return request(`/bussiness/dpFamilyConstructionArchives/add`, {
				method: 'post',
				data: query,
			})
		},
		// 分页获取列表
		dpFamilyConstructionArchives_page(query = {}) {
			return request(`/bussiness/dpFamilyConstructionArchives/page`, {
				method: 'post',
				data: query,
			})
		},
		// 通过id查看详情
		dpFamilyConstructionArchives_view(id) {
			return request(`/bussiness/dpFamilyConstructionArchives/${id}`, {
				method: 'get',
			})
		},
		// 导出
		dpFamilyConstructionArchives_export(query = {}) {
			return request(`/bussiness/dpFamilyConstructionArchives/export`, {
				method: 'post',
				data: query,
			})
		},
		// 通过id删除
		dpFamilyConstructionArchives_del(ids) {
			return request(`/bussiness/dpFamilyConstructionArchives/del`, {
				method: 'post',
				data: {
					batchesDel: ids,
				},
			})
		},
		// 下载模版
		dpFamilyConstructionArchives_downloadTemplate(query = {}) {
			return request(`/bussiness/dpFamilyConstructionArchives/downloadTemplate`, {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},
		// 导入
		dpFamilyConstructionArchives_import(query = {}, onUploadProgress) {
			return request(`/bussiness/dpFamilyConstructionArchives/import`, {
				method: 'post',
				headers: {
					'Content-Type': 'multipart/form-data; boundary=something',
				},
				onUploadProgress,
				data: query,
			})
		},

		// 评估档案详情，通过id查询
		dpFamilyBedAssess_view(id) {
			return request(`/bussiness/dpFamilyBedAssess/${id}`, {
				method: 'get',
			})
		},

		// 添加
		dpFamilyBedAssess_add(query = {}) {
			return request(`/bussiness/dpFamilyBedAssess/add`, {
				method: 'post',
				data: query,
			})
		},
		// 下载模版
		dpFamilyBedAssess_downloadTemplate(query = {}) {
			return request(`/bussiness/dpFamilyBedAssess/downloadTemplate`, {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},
		// 导入
		dpFamilyBedAssess_import(query = {}, onUploadProgress) {
			return request(`/bussiness/dpFamilyBedAssess/import`, {
				method: 'post',
				headers: {
					'Content-Type': 'multipart/form-data; boundary=something',
				},
				onUploadProgress,
				data: query,
			})
		},

		// 申请档案详情，通过id查询
		dpFamilyBedApply_view(id) {
			return request(`/bussiness/dpFamilyBedApply/${id}`, {
				method: 'get',
			})
		},
		// 添加
		dpFamilyBedApply_add(query = {}) {
			return request(`/bussiness/dpFamilyBedApply/add`, {
				method: 'post',
				data: query,
			})
		},
		// 下载模版
		dpFamilyBedApply_downloadTemplate(query = {}) {
			return request(`/bussiness/dpFamilyBedApply/downloadTemplate`, {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},
		// 导入
		dpFamilyBedApply_import(query = {}, onUploadProgress) {
			return request(`/bussiness/dpFamilyBedApply/import`, {
				method: 'post',
				headers: {
					'Content-Type': 'multipart/form-data; boundary=something',
				},
				onUploadProgress,
				data: query,
			})
		},
		// 签约档案详情，通过id查询
		dpFamilyBedSigned_view(id) {
			return request(`/bussiness/dpFamilyBedSigned/${id}`, {
				method: 'get',
			})
		},
		// 添加
		dpFamilyBedSigned_add(query = {}) {
			return request(`/bussiness/dpFamilyBedSigned/add`, {
				method: 'post',
				data: query,
			})
		},
		// 下载模版
		dpFamilyBedSigned_downloadTemplate(query = {}) {
			return request(`/bussiness/dpFamilyBedSigned/downloadTemplate`, {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},
		// 导入
		dpFamilyBedSigned_import(query = {}, onUploadProgress) {
			return request(`/bussiness/dpFamilyBedSigned/import`, {
				method: 'post',
				headers: {
					'Content-Type': 'multipart/form-data; boundary=something',
				},
				onUploadProgress,
				data: query,
			})
		},
		// 改造档案详情，通过id查询
		dpFamilyBedTransform_view(id) {
			return request(`/bussiness/dpFamilyBedTransform/${id}`, {
				method: 'get',
			})
		},
		// 添加
		dpFamilyBedTransform_add(query = {}) {
			return request(`/bussiness/dpFamilyBedTransform/add`, {
				method: 'post',
				data: query,
			})
		},
		// 下载模版
		dpFamilyBedTransform_downloadTemplate(query = {}) {
			return request(`/bussiness/dpFamilyBedTransform/downloadTemplate`, {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},
		// 导入
		dpFamilyBedTransform_import(query = {}, onUploadProgress) {
			return request(`/bussiness/dpFamilyBedTransform/import`, {
				method: 'post',
				headers: {
					'Content-Type': 'multipart/form-data; boundary=something',
				},
				onUploadProgress,
				data: query,
			})
		},
		// 验收档案详情，通过id查询
		dpFamilyBedAcceptance_view(id) {
			return request(`/bussiness/dpFamilyBedAcceptance/${id}`, {
				method: 'get',
			})
		},
		// 添加
		dpFamilyBedAcceptance_add(query = {}) {
			return request(`/bussiness/dpFamilyBedAcceptance/add`, {
				method: 'post',
				data: query,
			})
		},
		// 下载模版
		dpFamilyBedAcceptance_downloadTemplate(query = {}) {
			return request(`/bussiness/dpFamilyBedAcceptance/downloadTemplate`, {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},
		// 导入
		dpFamilyBedAcceptance_import(query = {}, onUploadProgress) {
			return request(`/bussiness/dpFamilyBedAcceptance/import`, {
				method: 'post',
				headers: {
					'Content-Type': 'multipart/form-data; boundary=something',
				},
				onUploadProgress,
				data: query,
			})
		},
	}
}
export default ({ request }: any) => ({
	...serviceFacModel(request),
})
